set terminal pdfcairo transparent
set output 'carr.pdf'
set style fill transparent solid 0.5 noborder
set style function filledcurves y1=0
set key noinvert samplen 1 spacing 1 width 0 height 0 
set key off
unset border 
unset xtics
unset ytics
unset colorbox

set samples 1000

#set terminal png         # gnuplot recommends setting terminal before output
#set output "carr.png"  # The output filename; to be set after setting

set xrange [-4*pi:7*pi]
set yrange [-0.1:1]
plot  \
(sin(x)/x)*(sin(x)/x) fs solid 1.0 lc rgb "forest-green", \
(sin(x-0*pi)/(x-0*pi))*(sin(x-0*pi)/(x-0*pi)) fs lc rgb "gold", \
(sin(x-1*pi)/(x-1*pi))*(sin(x-1*pi)/(x-1*pi)) fs lc rgb "red", \
(sin(x-2*pi)/(x-2*pi))*(sin(x-2*pi)/(x-2*pi)) fs lc rgb "orange", \
(sin(x-3*pi)/(x-3*pi))*(sin(x-3*pi)/(x-3*pi)) fs lc rgb "blue"

#, abs(sin(x-pi)/(x-pi))

